package cn.tedu.csmall.product.pojo.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

/**
 * 添加属性模板的DTO类
 *
 * @author Chen
 * @since 2023/1/5 17:15:15
 */
@Data
public class AttributeTemplateAddNewDTO implements Serializable {

    @Serial
    private static final long serialVersionUID = 4393472155627511793L;
    /**
     * 属性模版名称
     */
    @NotNull(message = "添加属性模板失败，必须提交属性模板名称！")
    @Schema(description = "属性模板名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "属性模板01")
    private String name;
    /**
     * 属性模版名称的拼音
     */
    @NotNull(message = "添加属性模板失败，必须提交属性模板名称的拼音！")
    @Schema(description = "拼音", requiredMode = Schema.RequiredMode.REQUIRED, example = "pinyin01")
    private String pinyin;
    /**
     * 关键词列表，各关键词使用英文的逗号分隔
     */
    @NotNull(message = "添加属性模板失败，必须提交关键词列表！")
    @Schema(description = "关键词列表", requiredMode = Schema.RequiredMode.REQUIRED, example = "关键词1,关键词2,关键词3")
    private String keywords;
    /**
     * 排序序号
     */
    @NotNull(message = "添加属性模板失败，必须提交属性模板名称的拼音！")
    @Schema(description = "排序序号", requiredMode = Schema.RequiredMode.REQUIRED, example = "99")
    private Integer sort;

}
